-- GENERATED SPELL FOR [Craghide Basilisk] --


function spell0_20607(pUnit, Event) --@Hypnotic Gaze,n/a--
pUnit:FullCastSpellOnTarget(35313,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20607', 6000, 1)
end

function spell1_20607(pUnit, Event) --@Threshalisk Charge,n/a--
pUnit:FullCastSpellOnTarget(35385,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20607', 564, 1)
end

function Sorts_20607(pUnit, Event)
local choix_sorts_20607 = math.random(0, 1)
if choix_sorts_20607 == 0 then
pUnit:RegisterEvent('spell0_20607', 1, 1)
end
if choix_sorts_20607 == 1 then
pUnit:RegisterEvent('spell1_20607', 1, 1)
end
end

function mob20607_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20607', math.random(1500, 3000), 1)
end

function mob20607_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20607_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20607_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20607, 1, 'mob20607_Action')
RegisterUnitEvent(20607, 2, 'mob20607_Leave')
RegisterUnitEvent(20607, 3, 'mob20607_Kill')
RegisterUnitEvent(20607, 4, 'mob20607_Die')
